<?php

namespace App\Model\BbcModel;

use Service\Code\Normal;
use App\Model\BaseModel\BaseBbcModel;

/**
 * 新版积分规则
 */
class GoodsPointsConfig extends BaseBbcModel 
{
    public $table = 'ly_goods_points_config';
    
    /**
     * 获取积分规则
     * @param $param
     * @return array
     * @author: hj
     */
    public static function getRule($param) {
        $content = self::where('cid', $param['cid'])->value('content');
        return Normal::returnCode(Normal::SUC, '请求成功', ['content' => $content ?: '']);
    }
}